<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html 
     PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html>
<head>
  <title>tag_link_list (Karakuri)</title>
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
  <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
</head>
<body class="standalone-code">
  <pre><span class="ruby-comment cmt"># File lib/karakuri.rb, line 12</span>
  <span class="ruby-keyword kw">def</span> <span class="ruby-constant">Karakuri</span>.<span class="ruby-identifier">tag_link_list</span>(<span class="ruby-identifier">csv_string</span>)
    <span class="ruby-comment cmt"># read csv-string into array</span>
    <span class="ruby-identifier">tag_list</span> = <span class="ruby-identifier">csv_to_array</span>(<span class="ruby-identifier">csv_string</span>)
    <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">tag_list</span>
      <span class="ruby-identifier">tag_string</span> = <span class="ruby-value str">&quot;&quot;</span>
      <span class="ruby-comment cmt">#TODO pass a format via parameter</span>
      <span class="ruby-identifier">tag_list</span>.<span class="ruby-identifier">each</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">tag</span><span class="ruby-operator">|</span> <span class="ruby-identifier">tag_string</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-node">%&amp;&lt;a href=&quot;/tagged?tag=#{tag}&quot; alt=&quot;articles concerning #{tag}&quot; &gt;#{tag}&lt;/a&gt; &amp;</span> }
    <span class="ruby-keyword kw">end</span>
    <span class="ruby-identifier">tag_string</span>
  <span class="ruby-keyword kw">end</span></pre>
</body>
</html>